<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link href="prism.css" rel="stylesheet" />
<script src="prism.js"></script>
</head>
<body>
<pre><code class="language-properties line-numbers "  >

url=http://www.baidu.com
#custom
testMsg = hello world
development.mode=true

#Base
app.ignore.path=/resource/
app.scan.pkg=com.demo.web;com.demo.suport
app.home.page=/index.jsp
app.serializer=fst
#C3p0/Druid DataScource
db.url=jdbc:mysql://192.168.1.11:3306/test?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull
db.username=root
db.password=root
db.driver=com.mysql.jdbc.Driver
db.type=mysql
</code>
</pre>
<pre><code class="language-java line-numbers">
package test;
import java.lang.reflect.Method;
import java.util.Arrays;

import com.jplus.framework.aop.AspectProxy;
import com.jplus.framework.aop.proxy.Proxy;
import com.jplus.framework.aop.proxy.ProxyManager;

public class TestAopJdk {

	public static void main(String[] args) throws IllegalArgumentException, InstantiationException, IllegalAccessException {
		Proxy pro = new TestProxy();
		ITestJdk to = (ITestJdk) ProxyManager.createProxyJdk(TestObj.class, Arrays.asList(pro));
		to.method2();
	}

	public static interface ITestJdk {
		public void method1();

		public void method2();
	}

	public static class TestObj implements ITestJdk {
		public void method1() {
			System.out.println("This is method1");
		}

		public void method2() {
			method1();
			System.out.println("This is method2");
		}
	}

	public static class TestProxy extends AspectProxy {
		@Override
		public void before(Class<?> cls, Method method, Object[] params) throws Throwable {
			System.out.println("====Aspect before：" + method.getName());
		}

		@Override
		public void after(Class<?> cls, Method method, Object[] params, Object result) throws Throwable {
			System.out.println("====Aspect after：" + method.getName());
		}
	}
}
	

</code></pre>
<script type="text/javascript">
</script>
</body>
</html>